recorder: Show details for opacity nodes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:14:32 +0000 (19:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:14:32 +0000 (19:14 -0400)
gtk/inspector/recorder.c

index 6b2d2657c83f4ea8631b0bf705467736a624b654..e1f219ac0cabd826413ec2e40c1f9cbf7af04df2 100644 (file)
@@ -377,6 +377,22 @@ populate_render_node_properties (GtkListStore  *store,
       }
       break;
 
+    case GSK_OPACITY_NODE:
+      {
+        double opacity = gsk_opacity_node_get_opacity (node);
+        const char *text;
+
+        text = g_strdup_printf ("%.2f", opacity);
+        gtk_list_store_insert_with_values (store, NULL, -1,
+                                           0, "Opacity",
+                                           1, text,
+                                           2, FALSE,
+                                           3, NULL,
+                                           -1);
+        g_free (text);
+      }
+      break;
+
     default: ;
     }
 }